package com.dwxt.cdms.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "health_report")
public class HealthReport {

    @Id
    private String id;

    @Column(name = "customer_id")
    private Integer customerId;

    @Column(name = "year")
    private Long year;

    @Column(name = "month")
    private Long month;

    @Column(name = "heartCount")
    private Long heartCount;
    @Column(name = "heartExceptionCount")
    private Long heartExceptionCount;

    @Column(name = "temperatureCount")
    private Long temperatureCount;

    @Column(name = "temperatureExceptionCount")
    private Long temperatureExceptionCount;

    @Column(name = "heartMin")
    private Long heartMin;

    @Column(name = "heartMax")
    private Long heartMax;

    @Column(name = "temperatureMin")
    private Double temperatureMin;

    @Column(name = "temperatureMax")
    private Double temperatureMax;

    @Column(name = "steps")
    private Long steps;

    @Column(name = "distance")
    private String distance;

    @Column(name = "create_time")
    private Date createTime;

    @Transient
    private String name;

}
